Software Development
Arrays and the Java Collection Framework
Collections in Java: Arrays & Non-parameterized ArrayLists
Collections in Java: Lists & List Operations
Collections in Java: Sets & Maps

Collections in Java: Arrays & Non-parameterized ArrayLists

Course Number:
it_jpcacodj_01_enus
Lesson Objectives

Collections in Java: Arrays & Non-parameterized ArrayLists

  • discover the key concepts covered in this course
  • create and add data to arrays of different types
  • examine the fixed-length enforcement of arrays
  • iterate over the values in arrays using for loops
  • define functions to add and delete values in arrays
  • use multidimensional arrays to store tabular data
  • store and access elements in array lists, part of the Java collections framework
  • work with type rules on non-parameterized collections
  • summarize the key concepts covered in this course

Overview/Description
The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures. Though not part of the Java collection framework, arrays allow you to store multiple elements. They are incredibly useful, albeit with significant drawbacks, when used as collection containers. Use this course to practice working with arrays and collections. Start by storing data in an ordered form using arrays. Through this, explore the drawbacks of arrays. Next, examine multi-dimensional arrays and jagged arrays. Finally, create and use the non-parameterized array list to store elements. When you're finished with this course, you'll have a good understanding of how arrays work, their drawbacks, and how the use of collections can overcome many of the limitations of working with arrays.

Target

Prerequisites: none

Collections in Java: Lists & List Operations

Course Number:
it_jpcacodj_02_enus
Lesson Objectives

Collections in Java: Lists & List Operations

  • discover the key concepts covered in this course
  • create and use parameterized lists by specifying type arguments
  • compare and contrast the usage of parameterized and non-parameterized lists
  • perform insertion, deletion, and other operations on lists
  • examine and invoke the methods available in the List interface
  • examine and invoke the methods available in the Iterable interface
  • summarize the key concepts covered in this course

Overview/Description
If you're writing Java code and need a container to store elements, a list is likely what you'll use. The Java collections framework provides several different list implementations. Use this course to practice using parameterized lists. Start by working with parameterized collections with type parameters to indicate the type of data you want to store within that collection. Compare parameterized and non-parameterized lists. Then, explore first-hand the advantages of working with parameterized lists. Next, investigate all the methods you can use to operate on lists in Java, examining the inheritance hierarchy of interfaces in the Java collections framework and the use case for each kind of interface. When you're finished with this course, you'll be able to use parameterized lists to store your data and perform the correct operation based on your use case.

Target

Prerequisites: none

Collections in Java: Sets & Maps

Course Number:
it_jpcacodj_03_enus
Lesson Objectives

Collections in Java: Sets & Maps

  • discover the key concepts covered in this course
  • explore the basic characteristics of the 'set' data structure
  • recall how hash sets identify duplicates
  • recall how different types of sets are ordered
  • implement tree sets for predictable ordering of data
  • identify how the Comparator and Comparable interfaces are used in tree sets
  • store key-value pairs in maps
  • view keys and values in maps as collections
  • create dictionaries with keys and values of custom types
  • recognize different type of map implementations
  • implement an LRU cache using a LinkedHashMap
  • implement the Comparator interface to access elements in a tree map in priority order
  • implement the Comparable interface to access elements in a tree map in priority order
  • recall the special operations that can be performed on sorted maps
  • summarize the key concepts covered in this course

Overview/Description
The Java collections framework has several different, specialized collections, such as sets and maps. These allow you to store values and data in different ways. In this course, you'll explore these and other valuable collections from the Java collections framework. Create and work with sets, performing several different operations, including union, intersection, difference, and subset operations. Next, explore the different set implementations that Java offers beyond the basic HashSet. Discover how the LinkedHashSet and TreeSet differ in how elements of the set are accessed. Finally, work with another important and commonly used Java collection, the map. Investigate several different map implementations and use maps to build a Least Recently Used cache and a priority queue. When you're finished, you'll have a solid foundational, working knowledge in using special collections in the Java collections framework.

Target

Prerequisites: none

Close Chat Live